/**
 * webpack-dev-server entry point for debugging.
 * This file is not bundled with the library during the build process.
 */
import { RemoteComponent } from "./RemoteComponent";
import React, { useState }  from "react";
import ReactDOM from "react-dom";

// different paths for localhost vs s3
// http://192.168.0.107:8080/Time.js
// http://192.168.0.107:8080/Counter.js
// http://192.168.0.107:8080/Counter.js
const url = "http://192.168.0.107:8080/Time.js" ;

const node = document.getElementById("root");


const Son = props => <RemoteComponent url={url} {...props} />;

const App = () => {
  return (
      <div>
          <Son />
      </div>
  )
}

ReactDOM.render(<App />, node);
